package com.abstracts;

public class AimalDemo {
    public static void main(String[] args) {
        Aimal aimal = new Cat();
        Cat cat = new Cat();
        Dog dog = new Dog();
        aimal.eat();
        System.out.println(aimal.getName());
        System.out.println(aimal.getAge());
        cat.eat();
        dog.eat();
    }
}
